package com.liusuai.yixian.domain;

public class  ResultBean <T> {
    private int code;
    private boolean isSuccess;
    private String msg="";
    private T data;

    public ResultBean() {
        this.data= (T) new Object();
    }

    public ResultBean(int code, boolean isSuccess, String msg) {
        this.code = code;
        this.isSuccess = isSuccess;
        this.msg = msg;
        this.data= (T) new Object();
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public boolean isSuccess() {
        return isSuccess;
    }

    public void setSuccess(boolean success) {
        isSuccess = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ResultBean{" +
                "code=" + code +
                ", isSuccess=" + isSuccess +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
